package TextOne;

import java.util.Scanner;

public class Trianggular {
    int a,b,c;
    public Trianggular(int a,int b,int c) {
        this.a=a;
        this.b=b;
        this.c=c;
    }
    public void judge() {
        if(!(a+b>c&&b+c>a&&a+c>b&&a>0&&b>0&&c>0))
            System.out.println("不能构成三角形");
        else
        {
            if(a==b||b==c||a==c)
            {
                if(a==b&&b==c)
                    System.out.println("等边三角形");
                else
                    System.out.println("等腰三角形");
            }
            else
                System.out.println("一般三角形");
        }
    }
    public static void main(String[] args) {
        System.out.println("请输入三个1到200的整数：");
        Scanner input=new Scanner(System.in);
        System.out.println("A:");
        int A=input.nextInt();
        System.out.println("B:");
        int B=input.nextInt();
        System.out.println("C:");
        int C=input.nextInt();
        if(A>200||A<1||B>200||B<1||C>200||C<1){
            System.out.println("参数输入超限");
            System.exit(0);
        }
        Trianggular OneT=new Trianggular(A, B, C);
        OneT.judge();
    }
}